#include "plane.h"

namespace Engine
{
	/*******************************************************************************************************/
	PointPos Plane::ClassifyPoint(const Vector3<REAL>& point)const
	{
		REAL distance = DotCoord(point);

		if(distance > 0.001)
			return POINT_IN_FRONT_OF_PLANE;

		if(distance < 0.001)
			return POINT_BEHIND_PLANE;

		return POINT_ON_PLANE;
	}
	/*******************************************************************************************************/
}
